package wsi.task;

import java.util.logging.Logger;

import org.rygh.core.face.ITask;

import wsi.dataguide.DataGuide;
import wsi.function.DirManager;
import wsi.function.Function;

public abstract class TaskRoutine implements ITask {
	protected final Logger log = Logger.getLogger(getClass().getName());

	protected final DirManager dir;
	protected final Function function;
	protected final DataGuide dataGuide;

	public TaskRoutine() {
		this(null);
	}

	public TaskRoutine(DirManager dir) {
		this.dir = dir;

		if (dir != null) {
			this.function = dir.getFunction();
			this.dataGuide = dir.getDataGuide();
		} else {
			this.function = null;
			this.dataGuide = null;
		}
	}

	@Override
	public abstract void compute();

	public String save() {
		return "";
	}
}
